package com.jrx.anytxn.transaction.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.transaction.entity.AmLoanAccountInfo;
import com.jrx.anytxn.transaction.entity.AmLoanMainInfo;

/**
 * 贷款账户service
 *
 * @author : zhenghaopu
 * 2019/10/28
 */
public interface ILoanAccountMainInfoService {
    /**
     * 根据订单ID，客户号，租户ID查询订单信息
     *
     * @param loanId     贷款ID
     * @param customerId 客户ID
     * @param tenantId 租户ID
     * @return 订单账户信息
     * @author fan.yang
     * date: 2019/9/25 0025 上午 11:25
     */
    AmLoanAccountInfo getAmLoanAccountInfoByLoanIdAndCusId(String loanId, String customerId, String tenantId) throws TxnBizException;

    /**
     * 构建贷款账户信息
     * @param amLoanMainInfo 贷款信息
     * @return
     */
    AmLoanAccountInfo buildAmLoanAccountInfo(AmLoanMainInfo amLoanMainInfo) throws TxnBizException;
}
